package com.wing.cabinet.model.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.wing.mybatis.common.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.wing.cabinet.model.entity.CountQuota;
import java.time.LocalDateTime;
import org.springframework.format.annotation.DateTimeFormat;
import java.math.BigDecimal;

/**
 * 统计限额Form
 *
 * @author
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class CountQuotaForm extends BaseEntity {

    /**
     * ID
     */
    private Long id;

    /**
     * 创建者
     */
    private Long creator;

    /**
     * 修改者
     */
    private Long modifier;

    /**
     * 创建人
     */
    private String creatorName;

    /**
     * 修改人
     */
    private String modifierName;

    /**
     * 权限组Id
     */
    private Long authorityManageId;

    /**
     * 领取人Id
     */
    private Long receiverId;

    /**
     * 领取人
     */
    private String receiverName;

    /**
     * 授信方式
     */
    private CountQuota.CreditWay creditWay;

    /**
     * 额度评估周期
     */
    private CountQuota.LineEvaluatePeriod lineEvaluatePeriod;

    /**
     * 授信额度
     */
    private BigDecimal lineOfCredit;

    /**
     * 剩余可领金额
     */
    private BigDecimal balance;


    public interface Add{}

    public interface Update{}

    /**
     * 授信类型
     */
    private CountQuota.CreditType creditType;
    /**
     * skuCode
     */
    private String skuCode;
    /**
     * 可领金额/数量下次重置更新时间
     */
    @JsonFormat(timezone = "GMT+8" , pattern = "yyyy-MM-dd HH:mm:ss" )
    private LocalDateTime resetTime;
}
